#include <unistd.h>
#include <stdio.h>
#include <stdlib.h>

int main()
{
    printf("Running ps with execlp\n");
    //execlp("ps","ps","ax",NULL);
    //execl("/bin/ps","ps","ax",NULL);
    int ret = execl("ps","ax",NULL);
    perror("execl");
    printf("Done.%d\n",ret);

    exit(0);
}


